package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public abstract class Teacher {
    protected String name;
    private int age;

    public Teacher(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public  void selfIntroduce(){
        System.out.println("我叫"+name+",今年"+age+"岁了");
    }
    //上课,抽象方法
    public abstract void giveLession();
//    public void giveLession(){
//
//    }
}
